<include file="public@header" />
</head>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('teacher/index')}">教师列表</a></li>
        <li><a href="{:url('teacher/add')}">添加教师</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('teacher/index')}">
    <span>教师名称:</span>
        <input type="text" class="form-control" name="name" style="width: 120px;" placeholder="请输入教师"  value="{$Request.param.name}">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('teacher/index')}" name="">清空</a>
    </form>
    <form  class="margin-top-20">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th width="80" align="center">ID</th>
                <th align="left" width="700px">教师名称</th>
                <th align="right">操作</th>
            </tr>
            </thead>
            <tbody>
           <foreach name="teacher" item="vo">
                <tr>
                    <td>{$key+1}</td>
                    <td>{$vo.name}</td>
                    <td type="align:right">
                         <a class="btn btn-xs btn-primary " href="{:url('teacher/edit',array('id'=>$vo['id']))}">编辑</a>
                         <a class="btn btn-xs btn-danger js-ajax-delete" class="" href="{:url('teacher/delete',array('id'=>$vo['id']))}">删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </form>
    <div class="pagination">
        {$page}
    </div>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>

</script>
</body>
</html>